package com.testfileupload.uploadimg.design.visitor;

public abstract class Employee {
    //0为男性
    public final static int MALE =0;
    //1为女性
    public final static int FEMALE =1;
    //谁都有工资
    private String name;
    private int salary;
    private int sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }
    //打印员工的信息
//    public final void report(){
//        String info = "姓名："+this.name;
//        info = info+"性别"+(this.sex==FEMALE ?"女":"男");
//        info = info+"薪水"+this.salary;
//        //获得其他员工信息
//        info = info + this.getOtherInfo();
//        System.out.println(info);
//    }

//    protected abstract String getOtherInfo();
    public abstract void accept(IVisitor visitor);
}
